import { ApiProperty } from '@nestjs/swagger';
import { CreateDeptDto } from './create-dept.dto';
import { IsNotEmpty, IsNumber } from 'class-validator';

export class UpdateDeptDto extends CreateDeptDto {
    @ApiProperty({ description: '部门ID' })
    @IsNotEmpty({ message: '部门ID不能为空' })
    @IsNumber()
    id: number;
  }
